/*
 * This file (RxBlackPixels.java) is protected by the GNU GPL licence (v2). 
 * Please read the license.txt attached for further informations. 
 * 
 */

package alkwarel.filters;

import alkwarel.objects.RxSimpleFilter;

/**
 * @author Xavier Gouchet
 *
 */
public class RxBlackPixels extends RxSimpleFilter {

	/**
	 * Standard Constructor
	 */
	public RxBlackPixels() {
		super(1021, "blackpixels");
	}

	/**
	 * @see alkwarel.objects.RxSimpleFilter#FilterPixel()
	 */
	protected void FilterPixel() {
		if (this.vval > 30){
			this.S(0);
			this.V(255);
		}
	}

}
